package com.example.springboot.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class Payment {
    private Integer paymentId;  // 改为 Integer 类型
    private Integer userId;     // 改为 Integer 类型
    private Integer orderId;    // 改为 Integer 类型
    private String orderType;   // 'self_service' 或 'merchant_service'
    private Integer merchantId;
    private BigDecimal orderAmount;
    private String paymentMethod; // 'alipay' 或 'wechat'
    private String paymentStatus; // 'success'、'failed'、'pending'
    private String transactionId;
    private LocalDateTime paymentDate;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // Getters and Setters
    public Integer getPaymentId() {  // 改为 Integer 类型
        return paymentId;
    }

    public void setPaymentId(Integer paymentId) {  // 改为 Integer 类型
        this.paymentId = paymentId;
    }

    public Integer getUserId() {  // 改为 Integer 类型
        return userId;
    }

    public void setUserId(Integer userId) {  // 改为 Integer 类型
        this.userId = userId;
    }

    public Integer getOrderId() {  // 改为 Integer 类型
        return orderId;
    }

    public void setOrderId(Integer orderId) {  // 改为 Integer 类型
        this.orderId = orderId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public Integer getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(String paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public LocalDateTime getPaymentDate() {
        return paymentDate;
    }

    public void setPaymentDate(LocalDateTime paymentDate) {
        this.paymentDate = paymentDate;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
}
